//
//  ApplyDetailViewController.swift
//  xiaoqiao
//
//  Created by 冷子豪 on 2017/8/4.
//  Copyright © 2017年 冷子豪. All rights reserved.
//

import UIKit

class ApplyDetailViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
   
    /// 跳转至个人信息子界面
    ///
    /// - Parameter sender: <#sender description#>
    @IBAction func personInfo(_ sender: UIButton) {
        performSegue(withIdentifier: "apply2person", sender: nil)
        
    }

    /// 跳转至工作信息子界面
    ///
    /// - Parameter sender: <#sender description#>
    @IBAction func workInfo(_ sender: UIButton) {
        if info.personType == 1 {
            performSegue(withIdentifier: "apply2work1", sender: nil)
        } else {
            performSegue(withIdentifier: "apply2work2", sender: nil)
        }
        
    }
    
    /// 跳转至联系人子界面
    ///
    /// - Parameter sender: <#sender description#>
    @IBAction func contactInfo(_ sender: UIButton) {
        performSegue(withIdentifier: "apply2contact", sender: nil)
        
    }
    
    /// 跳转至贷款信息子界面
    ///
    /// - Parameter sender: <#sender description#>
    @IBAction func loanInfo(_ sender: UIButton) {
        performSegue(withIdentifier: "apply2loan", sender: nil)
    }
    
    /// 预估额度
    ///
    /// - Parameter sender: <#sender description#>
    @IBAction func submit(_ sender: UIButton) {
        performSegue(withIdentifier: "detail2apply", sender: nil)
    }
}
